import './App.css';
import {useRef, useState} from "react";

function App() {

    const [value, setValue] = useState('受控绑定')
    return (
        <div>
            <h1>受控绑定：{value}</h1>
            <input
                type="text"
                value={value}
                onChange={event => setValue(event.target.value)}/>
        </div>
    )
}

export default App;
